﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CH.Reia.Entity.Link>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create
    </h2>
    <% using (Html.BeginForm("Create", "Link"))
       { %>
    <div>
        <fieldset>
            <legend>Link Information</legend>
            <div class="editor-label">
                Url
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Url)%>
                <%= Html.ValidationMessageFor(m => m.Url)%>
            </div>
            <div class="editor-label">
                Title
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Title)%>
                <%= Html.ValidationMessageFor(m => m.Title)%>
            </div>
            <div class="editor-label">
                Note
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Note)%>
                <%= Html.ValidationMessageFor(m => m.Note)%>
            </div>
            <div class="editor-field">
                <%= Html.CheckBox("IsPrivate")%>IsPrivate
            </div>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
